export class PermissionInfo {
  id: number;
  permission_name: string;
  permission_level: number;
  sort: number;

  constructor() {
    this.id = 0;
    this.permission_name = '';
    this.permission_level = 0;
    this.sort = 0;
  }
}

export class PermissionList {
  list: PermissionInfo[];

  constructor() {
    this.list = new Array<PermissionInfo>();
  }
}

export class AddPermission {
  parent_id:number;
  permission_name: string;
  permission_level: number;
  sort: number;
  action:string;

  constructor() {
    this.permission_name = '';
    this.permission_level = 0;
    this.sort = 0;
    this.action = '';
  }
}

export class EditPermission {
  id: number;
  parent_id:number;
  permission_name: string;
  permission_level: number;
  permission_status: number;
  sort: number;
  action:string;

  constructor() {
    this.id = 0;
    this.parent_id = 0;
    this.permission_name = '';
    this.permission_level = 0;
    this.permission_status = 1;
    this.sort = 0;
    this.action = '';
  }
}
